package com.kxmall.huishou.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.AddGroup;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 废品回收活动息业务对象 hs_waste_activity
 *
 * @author kxmall
 * @date 2023-11-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HsWasteActivityBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 活动主题
     */
    @NotBlank(message = "活动主题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 活动图片
     */
    @NotBlank(message = "活动图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgUrl;

    /**
     * 活动内容
     */
    @NotBlank(message = "活动内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 活动地址
     */
    @NotBlank(message = "活动地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 举办方
     */
    @NotBlank(message = "举办方不能为空", groups = { AddGroup.class, EditGroup.class })
    private String organizer;

    /**
     * 负责人
     */
    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactor;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 已报名人数
     */
//    @NotNull(message = "已报名人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long joinNum;

    /**
     * 活动报名状态，0进行中，1已结束
     */
//    @NotNull(message = "活动报名状态，0进行中，1已结束不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;


}
